<?php

	/**
	site: kr.lucklaser.com
	sitename: kr.lucklaser
	markname: LuckLaser-kr
	--
	site: lucklaser.jp
	sitename:lucklaser.jp
	markname:Lucklaser.jp
	**/


class Common_Function{


	/**
	 *根据项目等级编号 得到项目等级名称 
	 **/
	 public function getProjectLevelName($projectLevelNo){
		 $ProjectLevelName = "未知等级";
		 if($projectLevelNo == 1){
			$ProjectLevelName = "普通";
		 }else if($projectLevelNo == 2){
			$ProjectLevelName = "重要不紧急";
		 }else if($projectLevelNo == 3){
			$ProjectLevelName = "重要";
		 }else if($projectLevelNo == 4){
			$ProjectLevelName = "重要紧急";
		 }
		 return $ProjectLevelName;
	 }


	 /**
	 *根据项目状态编号 得到项目状态名称 
	 **/
	 public function getProjectStatusName($projectStatusNo){
		 $ProjectStatusName = "未知状态";
		 if($projectStatusNo == 1){
			$ProjectStatusName = "进行中";
		 }else if($projectStatusNo == 2){
			$ProjectStatusName = "暂停";
		 }else if($projectStatusNo == 3){
			$ProjectStatusName = "已完成";
		 }else if($projectStatusNo == 4){
			$ProjectStatusName = "已失败";
		 }else if($projectStatusNo == 5){
			$ProjectStatusName = "已取消";
		 }
		 return $ProjectStatusName;
	 }//end function getProjectStatusName
	

	 /**
	 *根据订单状态编号 得到订单状态名称 
	 **/
	 public function getOrderStatusName($orderStatusNo){
		 $OrderStatusName = "未知状态";
		 if($orderStatusNo == 10){
			$OrderStatusName = "没付款";
		 }else if($orderStatusNo == 20){
			 $OrderStatusName = "已付款";
		 }else if($orderStatusNo == 30){
			 $OrderStatusName = "已发货";
		 }else if($orderStatusNo == 40){
			 $OrderStatusName = "已完成";
		 }else if($orderStatusNo == 100){
			 $OrderStatusName = "已取消";
		 }
		 return $OrderStatusName;
	 }//end function getOrderStatusName


	 /**
	 * 根据用户角色编号得到角色名称
	 **/
	 public function getRoleName($roleNo){
		 $roleName = "未知角色";
		 if($roleNo == 1){
			 $roleName = "管理员";
		 }else if($roleNo == 2){
			  $roleName = "快递员";
		 }else if($roleNo == 3){
			  $roleName = "跟单员";
		 }else if($roleNo == 4){
			  $roleName = "订单管理员";
		 }else if($roleNo == 5){
			  $roleName = "任务管理员+订单管理员";
		 }else if($roleNo == 6){
			 $roleName = "e邮宝";
		 }else if($roleNo == 7){
			 $roleName = "女装";
		 }else if($roleNo == 8){
			 $roleName = "团队成员";
		 }
		 return $roleName;
	 }

	 /**
	 *获取付款方式名称
	 **/
	 public function getPaymentName($paymentFlag){
		 $paymentName = "未知付款方式";
		 if($paymentFlag == 0){
			$paymentName = "PayPal付款";
		 }else if($paymentFlag == 1){
			 $paymentName = "银行付款";
		 }else if($paymentFlag == 2){
			 $paymentName = "Alipay付款";
		 }
		 return $paymentName;
	 }

	 /**
	 *获取电池状态名称
	 **/
	 public function getBatteryStatusName($batteryFlag){
		 $batteryStatusName = "未知状态";
		 if($batteryFlag == 0){
			$batteryStatusName = "没电池";
		 }else if($batteryFlag == 1){
			 $batteryStatusName = "带电池";
		 }
		 return $batteryStatusName;
	 }

	 /**
	 *根据快递公司编号 获取快递公司名称
	 **/
	 public function getExpressCompanyName($expressCompany){
		 $expressCompanyName = "未知快递公司";
		 if($expressCompany == 10){
			  $expressCompanyName =  "EMS";
		 }else if($expressCompany == 20){
			  $expressCompanyName =  "日本专线Flyex";
		 }else if($expressCompany == 30){
			  $expressCompanyName =  "TNT";
		 }else if($expressCompany == 40){
			  $expressCompanyName =  "Fedex";
		 }else if($expressCompany == 50){
			  $expressCompanyName =  "UPS";
		 }else if($expressCompany == 60){
			  $expressCompanyName =  "DHL";
		 }else if($expressCompany == 70){
			  $expressCompanyName =  "英法专线Rpx";
		 }else if($expressCompany == 80){
			  $expressCompanyName =  "美国邮政Usps";
		 }else if($expressCompany == 90){
			  $expressCompanyName =  "专线Aramex";
		 }else if($expressCompany == 100){
			  $expressCompanyName =  "e邮宝";
		 }else if($expressCompany == 110){
			  $expressCompanyName =  "TOLL";
		 }
		 return $expressCompanyName;
	 }





	 /**
	 * Hiteclaser 邮件:付款方式
	 **/
	 public function getEmail_paymentEmail_H($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,1);//去掉H
			 if($result->fields['payment_flag'] == 0){
				 //PayPal
				 /*
				 $body = $result->fields['customer_name']." 様<br>";
				 $body = $body."<br>";
				 $body = $body."***********************<br>";
				 $body = $body."商品のお支払い方法 [ビデオ紹介] :: http://www.hiteclaser.com/page_3.html<br>";
				 $body = $body."1. クレジットカード決済「PayPal Invoice」<br>";
				 $body = $body."2. 銀行振込 <br>";
				 $body = $body."***********************<br>";
				 $body = $body."<br><br>";
				 $body = $body."<br>";
				 $body = $body."ご入金は次の口座にお願いいたします。<br>";
				 $body = $body."***********************<br>";
				 $body = $body."百五銀行　大淀支店<br>";
				 $body = $body."（普通口座）186796 ゴトウ ヒサユキ<br>";
				 $body = $body."***********************<br>";
				 $body = $body."<br>";
				 $body = $body."<br>";
				 $body = $body."それではご入金後、メールなどご連絡をよろしくお願い致します。<br>";
				 $body = $body."「ご連絡メールは」<br>";
				 $body = $body."1. ネット注文NO:".$order_no."<br>";
				 $body = $body."2. 振込名義人 「カタカナ」<br>";
				 $body = $body."3. 振込金額<br>";
				 $body = $body."<br><br><br><br>";
				 $body = $body."------------------------------------------<br>";
				 $body = $body."ご’愛顧いただき、ありがとうございます。<br>";
				 $body = $body."君は我々のウィブサイドでクレジットカードでご注文しましたので、後で PayPal Invoiceを送付いたします。<br>";
				 $body = $body."クレジットカード、JCB,Visa等大部分の銀行カードで決算できます。<br>";
				 $body = $body."<br>";
				 $body = $body."支払うスッテプ<br>";
				 $body = $body."1. ご注文が成功した後、PayPalから請求書のメールがいただけます。<br>";
				 $body = $body."2. 注文番号と金額をご確認ください。<br>";
				 $body = $body."3. クレジットカードで支払います。<br>";
				 $body = $body."<br>";
				 $body = $body."PayPal Invoiceの主旨は：<br>";
				 $body = $body."1. 我々のウィブサイトで君の注文番号Order NO<br>";
				 $body = $body."2. 君が購買した製品の総金額<br>";
				 $body = $body."3. 運送費（我々は黙認してお選びが EMS 速達会社、運送費は 991円 ）<br>";
				 $body = $body."4. 我々のPayPa口座　Hiteclaser PayPal Account 「master@civillaser.com」は口座です、決算時にご確認ください。<br>";
				 $body = $body."(もっと詳細なPayPal Invoice操作説明は以下のリンク http://www.hiteclaser.com/page_3.html をクリックしてください。)<br>";
				 $body = $body."<br>";
				 $body = $body."10日以内にお支払いを完了してください<br>";
				 $body = $body."24時間以内にお支払いした後に出荷（営業日）が受信されます。<br>";
				 $body = $body."どうもありがとうございます。<br>";
				 $body = $body."<br>";
				 $body = $body."<br>";	 
				 */
				 
				 $body = $result->fields['customer_name']." 様<br>";
				 $body = $body."<br>";
				 $body = $body."貴方の訪問頂いて感謝致します！<br><br>";
				 $body = $body."すぐにクレジットカードの支払い要求を電子メールでお送ります。<br><br>";
				 $body = $body."お支払いを入金して24時間以内に出荷します。<br><br>";
				 $body = $body."ぐクレジットカードの決済方法について、ここをクリックしてください：http://www.hiteclaser.com/page_3.html<br><br>";				 
				 $body = $body."<br><br>";
				 $body = $body."なぜPayPalで決済なの？<br>";
				 $body = $body."1.PayPalはグループ中一番人気ある決済プラントフォームです。<br>";
				 $body = $body."2.PayPalは消費者の利益を保護する、払い戻しは便利です。<br>";
				 $body = $body."3.ユーザーはPayPal口座を持たずにオンライン決済もいいです。<br>";
				 $body = $body."4.PayPalの口座番号は必要ない、直接決済ください<br>";
				 $body = $body."5.PayPalの支持クレジットカードは(JCB/Visa/Mastercard/Discover/AMEX)です。<br>";
				 $body = $body."6.いつまでも、支払い可能です、すごく便利だ！<br>";
				 $body = $body."<br>";
				 $body = $body."(Our PayPal Account: master@civillaser.com)<br>";

				 $body = $body."<br><br>";				 
				 $body = $body."<br>";
				 
				 $body = $body."どうもありがとうございます。<br>";
				 $body = $body."<br>";
				 $body = $body."<br>";	 

			 }else{
				 //Bank
				 $body = $result->fields['customer_name']." 様<br>";
				 $body = $body."<br>";
				 $body = $body."***********************<br>";
				 $body = $body."商品のお支払い方法 [ビデオ紹介] :: http://www.hiteclaser.com/page_3.html<br>";
				 $body = $body."1. クレジットカード決済「PayPal Invoice」<br>";
				 $body = $body."2. 銀行振込 <br>";
				 $body = $body."***********************<br>";
				 $body = $body."<br><br>";
				 $body = $body."日頃よりご愛顧を承り厚く申し上げます！<br>";
				 $body = $body."ご入金を確認でき次第、品物を発送いたします。<br>";
				 $body = $body."<br>";
				 $body = $body."ご入金は次の口座にお願いいたします。<br>";
				 $body = $body."***********************<br>";
				 $body = $body."百五銀行　大淀支店<br>";
				 $body = $body."（普通口座）186796 ゴトウ ヒサユキ<br>";
				 $body = $body."***********************<br>";
				 $body = $body."<br>";
				 $body = $body."<br>";
				 $body = $body."それではご入金後、メールなどご連絡をよろしくお願い致します。<br>";
				 $body = $body."「ご連絡メールは」<br>";
				 $body = $body."1. ネット注文NO:".$order_no."<br>";
				 $body = $body."2. 振込名義人 「カタカナ」<br>";
				 $body = $body."3. 振込金額<br>";
				 $body = $body."<br>";
				 $body = $body."というようにお願いいたします。<br>";
				 $body = $body."<br>";
				 $body = $body."<br>";				 
			 }
			 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】高科激光株式会社   ハイテクレーザーカブシキガイシャ<br>";
			 $body = $body."【店舗名】www.hiteclaser.com<br>";
			 $body = $body."【E-Mail】 master@hiteclaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";
			 			
		 }
		 return $body;
	 }



	 /**
	 * Lucklaser.jp 邮件:付款方式
	 **/
	 public function getEmail_paymentEmail_LJ($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,2);//去掉LJ

			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."貴方の訪問頂いて感謝致します！<br><br>";
			 $body = $body."すぐにクレジットカードの支払い要求を電子メールでお送ります。<br><br>";
			 $body = $body."お支払いを入金して24時間以内に出荷します。<br><br>";
			 $body = $body."ぐクレジットカードの決済方法について、ここをクリックしてください：http://www.lucklaser.jp/payment-ezp-5.html<br><br>";				 
			 $body = $body."<br><br>";
			 $body = $body."なぜPayPalで決済なの？<br>";
			 $body = $body."1.PayPalはグループ中一番人気ある決済プラントフォームです。<br>";
			 $body = $body."2.PayPalは消費者の利益を保護する、払い戻しは便利です。<br>";
			 $body = $body."3.ユーザーはPayPal口座を持たずにオンライン決済もいいです。<br>";
			 $body = $body."4.PayPalの口座番号は必要ない、直接決済ください<br>";
			 $body = $body."5.PayPalの支持クレジットカードは(JCB/Visa/Mastercard/Discover/AMEX)です。<br>";
			 $body = $body."6.いつまでも、支払い可能です、すごく便利だ！<br>";
			 $body = $body."<br>";
			 $body = $body."(Our PayPal Account: master@civillaser.com)<br>";
			 $body = $body."<br><br>";				 
			 $body = $body."<br>";
				 
			 $body = $body."どうもありがとうございます。<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";	
			 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】沃熔科技株式会社  HangZhou WoRong Technology Co. Ltd  <br>";
			 $body = $body."【店舗名】www.lucklaser.jp<br>";
			 $body = $body."【E-Mail】 master@lucklaser.jp<br>";
			 $body = $body."------------------------End------------------------<br>";
			 			
		 }
		 return $body;
	 }



	 /**
	 * Lucklaser-kr 邮件:付款方式
	 **/
	 public function getEmail_paymentEmail_LK($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,2);//去掉LK

			 $body = $result->fields['customer_name']." <br>";
			 $body = $body."<br>";
			 $body = $body."안녕하세요!<br><br>";
	
	
			$body = $body."구매해 주셔서 감사합니다!<br><br>";			
			$body = $body."납부금을 받은 후 24 시간 안에 물품을 발송하겠습니다. (정제한 상품은 포함하지 않습니다.)<br><br>";	
			$body = $body."결제 방식 참고:  http://www.kr.lucklaser.com/payment-ezp-8.html <br>";	
			$body = $body."<br><br>";
			$body = $body."신용카드 결제 (PayPal결제 요청 이메일을 보내야 합니다.)<br>";
			$body = $body."PayPal 방식에 대한 설명:<br>";
			$body = $body."1.PayPal는 현제 전세계에서 제일 유행한 결제 방식입니다.<br>";
			$body = $body."2.고객님은PayPal에 가입할 필요가 없습니다. 신용카드만 있으면 결제가 됩니다.<br>";
			$body = $body."3.PayPal는 소비자를 보호하는 결제 방식입니다. 쇼핑 문제가 생기면 PayPal에 전액 환급을 신고하면 됩니다.<br>";
			$body = $body."4.PayPal가 지지하는 신용카드: Visa/Mastercard/Discover/AMEX<br>";
			$body = $body."<br><br>";
			$body = $body."우리 회사의 PayPal 번호는: master@civillaser.com (Accept US dollar)<br>";
			$body = $body."<br><br>";
			$body = $body."다시 와 주셔서 감사합니다.<br>";
			$body = $body."<br><br>";
			$body = $body."당신의 상품 구매 리스트: <br>";
			$body = $body."------------------------------------------------------<br>";
			$body = $body.$result->fields['products_info']."<br>";
			$body = $body."------------------------------------------------------<br>";
			$body = $body."<br><br>";
			$body = $body."<br><br>";
			$body = $body."점장: Vincent Chen<br>";
			$body = $body."회사 명칭: HangZhou WoRong Technology Co. Ltd<br>";
			$body = $body."인터넷 쇼핑점 주소: www.kr.lucklaser.com<br>";
			$body = $body."이메일 주소: kr@lucklaser.com<br>";
			$body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }


	 /**
	 * Lucklaser 邮件:付款方式
	 **/
	 public function getEmail_paymentEmail_L($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,1);//去掉L
			 //PayPal
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."Thanks for shopping with us today!<br>";
			 $body = $body."<br>";
			 $body = $body."We have sent a PayPal invoice to you. <br>";
			 $body = $body."Please open your Email and then use your PayPal account or your credit-card to do payment online. <br>";
			 $body = $body."<br>";
			 $body = $body."After we get your payment, we will deliver the goods to you in 24 hours. <br>";
			 $body = $body."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."Note: <br>";
			 $body = $body."Our PayPal account is \"master@civillaser.com\"<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."You can find more detail message about Payment(Video show buying process):<br>";
			 $body = $body."http://www.lucklaser.com/payment-shipping-ezp-8.html <br>";
			 $body = $body."<br>";	
			 $body = $body."<br>";
			 $body = $body."**************************************<br>";
			 $body = $body."Payment steps:<br>";
			 $body = $body."1. After you place an order, you will receive an email; <br>";
			 $body = $body."&nbsp;&nbsp;&nbsp;&nbsp;It's a bill for payment from PayPal.<br>";
			 $body = $body."2. Check your order number,products list,amount price.<br>";
			 $body = $body."3. Pay it on PayPal site.<br>";
			 $body = $body."**************************************<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store] www.lucklaser.com<br>";
			 $body = $body."[E-Mail]master@lucklaser.com <br>";
			 $body = $body."------------------------End------------------------<br>";
			 			
		 }
		 return $body;
	 }



	 /**
	 * Hiteclaser 邮件:催付款
	 **/
	 public function getEmail_askPaymentEmail($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,1);//去掉H
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 
			 $body = $body."***********************<br>";
			 $body = $body."商品のお支払い方法 [ビデオ紹介] :: http://www.hiteclaser.com/page_3.html<br>";
			 $body = $body."1. クレジットカード決済「PayPal Invoice」<br>";
			 $body = $body."2. 銀行振込 <br>";
			 $body = $body."***********************<br>";
			 $body = $body."<br><br>";
			 $body = $body."お世話になっております。<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."我々のウィブサイトでの注文書はまだ支払っていません、君のこの注文書を継続に保留必要ですか。<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."24時間（営業日）以内にお支払いした後に出荷が受信されます。<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."ご入金は次の口座にお願いいたします。<br>";
			 $body = $body."***********************<br>";
			 $body = $body."百五銀行　大淀支店<br>";
			 $body = $body."（普通口座）186796 ゴトウ ヒサユキ<br>";
			 $body = $body."***********************<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."それではご入金後、メールなどご連絡をよろしくお願い致します。<br>";
			 $body = $body."「ご連絡メールは」<br>";
			 $body = $body."1. ネット注文NO:".$order_no."<br>";
			 $body = $body."2. 振込名義人 「カタカナ」<br>";
			 $body = $body."3. 振込金額<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."というようにお願いいたします。<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			
			 


			 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】高科激光株式会社   ハイテクレーザーカブシキガイシャ<br>";
			 $body = $body."【店舗名】www.hiteclaser.com<br>";
			 $body = $body."【E-Mail】 master@hiteclaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";
			 			
		 }
		 return $body;
	 }



	 /**
	 * Hiteclaser 邮件:确认付款
	 **/
	 public function getEmail_confirmPaymentEmail_H($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,1);//去掉H
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."日頃よりご愛顧を承り厚く申し上げます!<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";

			 $body = $body."ご入金は確認できましたのでただちに品物を発送いたします。またExpress Trackingの速達NOをお客様にメールで知らせます。<br>";
			 $body = $body."<br>";

			 $body = $body."<br>";
			 $body = $body."今回は誠にありがとうございました!<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";

			 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】高科激光株式会社   ハイテクレーザーカブシキガイシャ<br>";
			 $body = $body."【店舗名】www.hiteclaser.com<br>";
			 $body = $body."【E-Mail】 master@hiteclaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";
			 			
		 }
		 return $body;
	 }




	 /**
	 * Lucklaser.jp 邮件:确认付款
	 **/
	 public function getEmail_confirmPaymentEmail_LJ($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,2);//去掉LJ
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."日頃よりご愛顧を承り厚く申し上げます!<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";

			 $body = $body."ご入金は確認できましたのでただちに品物を発送いたします。またExpress Trackingの速達NOをお客様にメールで知らせます。<br>";
			 $body = $body."<br>";

			 $body = $body."<br>";
			 $body = $body."今回は誠にありがとうございました!<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";

			 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】沃熔科技株式会社  HangZhou WoRong Technology Co. Ltd  <br>";
			 $body = $body."【店舗名】www.LuckLaser.jp<br>";
			 $body = $body."【E-Mail】 master@lucklaser.jp<br>";
			 $body = $body."------------------------End------------------------<br>";
			 			
		 }
		 return $body;
	 }

	
	
	
	 /**
	 * Lucklaser-kr 邮件:确认付款
	 **/
	 public function getEmail_confirmPaymentEmail_LK($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,2);//去掉LK
			 $body = $result->fields['customer_name']." <br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."납부금을 받았습니다. 감사합니다!<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";

			 $body = $body."당신을 위해서 화물 발송을 했습니다. 상품이 발송된 후에 배달 번호를 이메일 로 보내드리겠습니다.<br>";
			 $body = $body."<br>";

			 $body = $body."<br>";
			 $body = $body."지지해 주셔서 감사합니다!<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";

			 
			 $body = $body."[당신의 상품 구매 리스트]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."점장: Vincent Chen<br>";
			 $body = $body."회사 명칭: HangZhou WoRong Technology Co. Ltd  <br>";
			 $body = $body."인터넷 쇼핑점 주소: www.kr.lucklaser.com<br>";
			 $body = $body."이메일 주소: kr@lucklaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";
			 			
		 }
		 return $body;
	 }


	 /**
	 * Lucklaser 邮件:确认付款
	 **/
	 public function getEmail_confirmPaymentEmail_L($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,1);//去掉L
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."We have received your payment. Thank you very much for your support!<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."We will ship your products as soon as possible, After shipping the package, we will email the Tracking Number to you.<br>";		 
			 $body = $body."<br>";
			 $body = $body."<br>";
			 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store] www.lucklaser.com<br>";
			 $body = $body."[E-Mail]master@lucklaser.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";
			 			
		 }
		 return $body;
	 }


	 
	 /**
	 * 发快递单给客户, Hiteclaser
	 **/
	 public function getEmail_sendTrackingNumber_H($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,1);//去掉H	 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 if($express_company == 10){
				 //EMS
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便EMSにお願いして発送致しましたhttp://www.ems.com.cn/english.html　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
				                <br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                    $body = $body."<br>";
			 }else if($express_company == 20){
				 //日本专线
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便FlyExpressにお願いして発送致しましたhttp://www.flyex.com.cn/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても3~5日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                    $body = $body."<br>";
			}else if($express_company == 30){
				 //TNT
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 TNT にお願いして発送致しましたhttp://www.tnt.com/express/en_hk/site/home.html 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 Fedex にお願いして発送致しましたhttp://www.fedex.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 UPS にお願いして発送致しました http://www.ups.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 DHL にお願いして発送致しました http://www.dhl.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 Rpxonline にお願いして発送致しました http://www.rpxonline.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 80){
				 //美国USPS
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 USPS にお願いして発送致しました https://www.usps.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 90){
				 //美国专线
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 Aramex にお願いして発送致しました https://www.aramex.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 100){
				 //e邮宝
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 EMS にお願いして発送致しました http://www.ems.com.cn/english.html 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても3~5日間になります。お待ちください！<br>";
				 $body = $body."<br><br>";
				 $body = $body."[電池不含]<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."電池の海外への配送について<br>";
				 $body = $body."航空便規制により電池は同梱しておりません。ご了承してください！<br>";
				 $body = $body."<br>";
				 $body = $body."各製品の使用電池タイプは上記製品概要欄に明記していますのでご確認くださいませ！<br>";
				 $body = $body."（充電池を含むこと）<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";	 
			}else if($express_company == 110){
				 //TOLL
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 TOLL にお願いして発送致しました http://www.tollgroup.com/all-tools 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~5日間になります。お待ちください！<br>";
				 $body = $body."<br><br>";
				 /*
				 $body = $body."[電池不含]<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."電池の海外への配送について<br>";
				 $body = $body."航空便規制により電池は同梱しておりません。ご了承してください！<br>";
				 $body = $body."<br>";
				 $body = $body."各製品の使用電池タイプは上記製品概要欄に明記していますのでご確認くださいませ！<br>";
				 $body = $body."（充電池を含むこと）<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 */
				 $body = $body."<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";	
			 }else{
				 //其他线路
				 $body = $body."*******其他线路请手工编辑邮件内容，格式如下：*******<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 xxxxxxxxxx にお願いして発送致しました http://www.xxxxxxxxxxxxxxxxxxx.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			 }
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 /*
			 $body = $body."注意：<br>";
			 $body = $body."電池不含（充電器含む）「航空便規制により電池は同梱しておりません。」<br>";
			 $body = $body."1. 各製品の使用電池タイプは上記製品概要欄に明記していますのでご確認くださいませ。<br>";
			 $body = $body."2. 日本国内電池購入について ::  http://www.hiteclaser.com/-ezp-14.html<br>";
			 $body = $body."<br>";
			 */
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】高科激光株式会社   ハイテクレーザーカブシキガイシャ<br>";
			 $body = $body."【店舗名】www.hiteclaser.com<br>";
			 $body = $body."【E-Mail】 master@hiteclaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }
	 

	 
	 /**
	 * 发快递单给客户, Lucklaser.jp
	 **/
	 public function getEmail_sendTrackingNumber_LJ($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,2);//去掉LJ	 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 if($express_company == 10){
				 //EMS
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便EMSにお願いして発送致しましたhttp://www.ems.com.cn/english.html　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
				                <br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                    $body = $body."<br>";
			 }else if($express_company == 20){
				 //日本专线
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便FlyExpressにお願いして発送致しましたhttp://www.flyex.com.cn/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても3~5日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                    $body = $body."<br>";
			}else if($express_company == 30){
				 //TNT
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 TNT にお願いして発送致しましたhttp://www.tnt.com/express/en_hk/site/home.html 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 Fedex にお願いして発送致しましたhttp://www.fedex.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 UPS にお願いして発送致しました http://www.ups.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 DHL にお願いして発送致しました http://www.dhl.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 Rpxonline にお願いして発送致しました http://www.rpxonline.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 80){
				 //美国专线
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 USPS にお願いして発送致しました https://www.usps.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 90){
				 //美国专线
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 Aramex にお願いして発送致しました https://www.aramex.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			}else if($express_company == 100){
				 //e邮宝
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 EMS にお願いして発送致しました http://www.ems.com.cn/english.html 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても3~5日間になります。お待ちください！<br>";
				 $body = $body."<br><br>";
				 $body = $body."[電池不含]<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."電池の海外への配送について<br>";
				 $body = $body."航空便規制により電池は同梱しておりません。ご了承してください！<br>";
				 $body = $body."<br>";
				 $body = $body."各製品の使用電池タイプは上記製品概要欄に明記していますのでご確認くださいませ！<br>";
				 $body = $body."（充電池を含むこと）<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";	
			}else if($express_company == 110){
				 //TOLL
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 TOLL にお願いして発送致しました http://www.tollgroup.com/all-tools 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~5日間になります。お待ちください！<br>";
				 $body = $body."<br><br>";
				 /*
				 $body = $body."[電池不含]<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."電池の海外への配送について<br>";
				 $body = $body."航空便規制により電池は同梱しておりません。ご了承してください！<br>";
				 $body = $body."<br>";
				 $body = $body."各製品の使用電池タイプは上記製品概要欄に明記していますのでご確認くださいませ！<br>";
				 $body = $body."（充電池を含むこと）<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 */
				 $body = $body."<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			 }else{
				 //其他线路
				 $body = $body."*******其他线路请手工编辑邮件内容，格式如下：*******<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."お世話になります！<br>";
				 $body = $body."<br>";
				 $body = $body."商品は国際郵便 xxxxxxxxxx にお願いして発送致しました http://www.xxxxxxxxxxxxxxxxxxx.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　
								<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
				 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
				 $body = $body."以上です、よろしくお願いいたします！<br>";
                 $body = $body."<br>";
			 }
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";

			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】沃熔科技株式会社  HangZhou WoRong Technology Co. Ltd  <br>";
			 $body = $body."【店舗名】www.LuckLaser.jp<br>";
			 $body = $body."【E-Mail】 master@lucklaser.jp<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }
	 

	 
	 /**
	 * 发快递单给客户, Lucklaser-kr
	 **/
	 public function getEmail_sendTrackingNumber_LK($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,2);//去掉LK	 
			 $body = $result->fields['customer_name']." <br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
	
			 $body = $body." 구매해 주셔서 감사합니다!<br>";
			 $body = $body."<br>";
			 $body = $body."당신의 배달은 이미 발송했습니다. 다음과 같은 사이트에 들어가 배달 정보를 확인하세요:<br>";	
			 if($express_company == 10){
				 //EMS
				 $body = $body."익스프레스 회사: http://www.ems.com.cn/english.html<br>";
			 }else if($express_company == 20){
				 //日本专线
				$body = $body."익스프레스 회사: http://www.flyex.com.cn<br>";
			}else if($express_company == 30){
				 //TNT
				$body = $body."익스프레스 회사: http://www.tnt.com<br>";
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."익스프레스 회사: http://www.fedex.com<br>";
			}else if($express_company == 50){
				 //UPS
				$body = $body."익스프레스 회사: http://www.ups.com<br>";
            }else if($express_company == 60){
				 //DHL
				$body = $body."익스프레스 회사: http://www.dhl.com<br>";
             }else if($express_company == 70){
				 //英法德专线
				$body = $body."익스프레스 회사: http://www.rpxonline.com<br>";
			}else if($express_company == 80){
				 //美国USPS
				$body = $body."익스프레스 회사: http://www.usps.com<br>";
			}else if($express_company == 90){
				 //美国专线
				$body = $body."익스프레스 회사: http://www.aramex.com<br>";
			}else if($express_company == 100){
				 //e邮宝
	             $body = $body."익스프레스 회사: http://www.ems.com.cn/english.html<br>";
			}else if($express_company == 110){
				 //TOLL
				$body = $body."익스프레스 회사: http://www.tollgroup.com/all-tools<br>";
			 }else{
				 //其他线路
				 $body = $body."익스프레스 회사: xxxxxxxxxxxxxxxother express companyxxxxxxxxxxxxxxxxxxxxxxx<br>";
			 }
			$body = $body."배달 번호: ".$tracking_number."<br>";
	        $body = $body."<br>";
		    $body = $body."보통 3-5일이 걸립니다. 좀 기다리세요!<br>";
			$body = $body."<br><br>";
			$body = $body."다시 와 주셔서 감사합니다.<br>";
            $body = $body."<br>";
	
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[당신의 상품 구매 리스트]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";

			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."점장: Vincent Chen<br>";
			 $body = $body."회사 명칭: HangZhou WoRong Technology Co. Ltd <br>";
			 $body = $body."인터넷 쇼핑점 주소: www.kr.lucklaser.com<br>";
			 $body = $body."이메일 주소: kr@lucklaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }
	 

	 
	 /**
	 * 发快递单给客户, Lucklaser
	 **/
	 public function getEmail_sendTrackingNumber_L($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,1);//去掉L	 
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";
			 $body = $body."<br>";
			 $body = $body."We have sent your package by  Air Transport. <br>";
			 $body = $body."Please find your tracking number listed below:<br>";
			 if($express_company == 10){
				 //EMS				 
				 $body = $body."Express company web site: http://www.ems.com.cn/english.html<br>";				 
			 }else if($express_company == 20){
				 //日本专线
				 $body = $body."Express company web site: http://www.flyex.com.cn<br>";	
			}else if($express_company == 30){
				 //TNT
				 $body = $body."Express company web site: http://www.tnt.com/express/en_hk/site/home.html<br>";	
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."Express company web site: http://www.fedex.com<br>";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."Express company web site: http://www.ups.com<br>";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."Express company web site: http://www.dhl.com<br>";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."Express company web site: http://www.rpxonline.com<br>";
			}else if($express_company == 80){
				 //美国邮政
				 $body = $body."Express company web site: https://www.usps.com/<br>";
			}else if($express_company == 90){
				 //美国专线
				 $body = $body."Express company web site: https://www.aramex.com/<br>";
			}else if($express_company == 100){
				 //e邮宝
				 $body = $body."Express company web site: http://www.ems.com.cn/english.html<br>";
			 }else if($express_company == 110){
				 //TOLL
				 $body = $body."Express company web site: http://www.tollgroup.com/all-tools<br>";
			 }else{
				 //其他线路
				 $body = $body."<br><br>*******其他线路请手工编辑邮件内容，格式如下：*******<br><br>";
				  $body = $body."Express company web site: http://www.xxxxxxxxxxx.com<br>";
			 }
			 $body = $body."Tracking Number: ".$tracking_number."<br>";
			 $body = $body."<br>";

			 if($express_company == 100){//e邮宝
				 $body = $body."It usually will take 8 ~ 15 days for delivery.<br>";				 
			 }else{
				 $body = $body."It usually will take 4 ~ 7 days for delivery. <br>";
			 }			 
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."[Cash Back]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."After you receive LUCKLASER's laser pointer, if you like it,please give us a positively review.<br>";
			 $body = $body."Add your reviews on below web sites, you will win $3~$5 case back.(It will be refunded to your PayPal or Credit Card.)<br><br>";
			 $body = $body."1. www.youtube.com/user/CivilLaserVideo<br>";
			 $body = $body."2. www.facebook.com/civil.laser<br>";
			 $body = $body."3. Or any other popular web sites.<br>";
			 $body = $body."<br>";
			 $body = $body."Note: <br>";
			 $body = $body."1. Reviews should include the keywords 'LuckLaser' 'Laser Pointer'.<br>";
			 $body = $body."2. $3 for the text reviews.<br>";
			 $body = $body."3. $5 for uploading your videos or beautiful pictures.<br>";
			 $body = $body."<br>";
			 $body = $body."Tell us the review or video link,win the cash back,so easy!<br>";
			 $body = $body."------------------------------------------------------<br>";
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."[Battery Not Include]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."International Air Express rule: <br>";
			 $body = $body."Lithium battery is prohibited to carry for safety of flight.<br><br>";
			 $body = $body."Please prepare the battery by youself. (Charger include)<br>";
			 $body = $body."You can find the corresponding battery model on the product description page.<br> ";
			 $body = $body."------------------------------------------------------<br>";
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
	 

			 /*
			 $body = $body."Note:<br>";
			 $body = $body."We have put a order invoice paper in your parcel, and please ignore the following two messages.<br>";
			 $body = $body."1. The product's price is 0. (If show the real price may create extra tax.)  <br>";
			 $body = $body."2. Ignore the below announce, and don't worry about the laser's real output power,the real power has not changed, show 1mw on the invoice paper just for easy pass some country's customs.   <br>'★According to the customer's special request, the output power of this laser pointer has been customized to become a safety laser ( 1mw ).★' <br>";
			 $body = $body."<br>";
			 */


			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";		
			
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store] www.lucklaser.com<br>";
			 $body = $body."[E-Mail]master@lucklaser.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 
			 			
		 }
		 return $body;
	 }
	 
	 
	 /**
	 * 发快递单给客户, Civillaser
	 **/
	 public function getEmail_sendTrackingNumber_C($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,1);//去掉C	 
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";
			 $body = $body."<br>";
			 $body = $body."We have sent your package by  Air Transport. <br>";
			 $body = $body."Please find your tracking number listed below:<br>";
			 if($express_company == 10){
				 //EMS				 
				 $body = $body."Express company web site: http://www.ems.com.cn/english.html<br>";				 
			 }else if($express_company == 20){
				 //日本专线
				 $body = $body."Express company web site: http://www.flyex.com.cn<br>";	
			}else if($express_company == 30){
				 //TNT
				 $body = $body."Express company web site: http://www.tnt.com/express/en_hk/site/home.html<br>";	
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."Express company web site: http://www.fedex.com<br>";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."Express company web site: http://www.ups.com<br>";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."Express company web site: http://www.dhl.com<br>";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."Express company web site: http://www.rpxonline.com<br>";
			}else if($express_company == 80){
				 //美国邮政
				 $body = $body."Express company web site: https://www.usps.com/<br>";
			}else if($express_company == 90){
				 //美国专线
				 $body = $body."Express company web site: https://www.aramex.com/<br>";
			}else if($express_company == 100){
				 //e邮宝
				 $body = $body."Express company web site: http://www.ems.com.cn/english.html<br>";
			}else if($express_company == 110){
				 //TOLL
				 $body = $body."Express company web site: http://www.tollgroup.com/all-tools<br>";
			 }else{
				 //其他线路
				 $body = $body."<br><br>*******其他线路请手工编辑邮件内容，格式如下：*******<br><br>";
				  $body = $body."Express company web site: http://www.xxxxxxxxxxx.com<br>";
			 }
			 $body = $body."Tracking Number: ".$tracking_number."<br>";
			 $body = $body."<br>";
			 if($express_company == 100){//e邮宝
				 $body = $body."It usually will take 8 ~ 15 days for delivery. <br>";
				 $body = $body."<br>";
				 /*
				 $body = $body."[Without battery]<br>";
				 $body = $body."------------------------------------------------------<br>";
				 $body = $body."International Air Express rule: <br>";
				 $body = $body."Lithium battery is prohibited to carry for safety of flight.<br><br>";
				 $body = $body."Please prepare the battery by youself. (Charger include)<br>";
				 $body = $body."You can find the corresponding battery model on the product description page.<br> ";
				 $body = $body."------------------------------------------------------<br>";
				 */
			 }else{
				 $body = $body."It usually will take 4 ~ 7 days for delivery. <br>";
			 }
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 /*
			 $body = $body."Note:<br>";
			 $body = $body."International Air Express rule: Lithium battery is prohibited to carry.<br>";
			 $body = $body."1. Please prepare the battery by yourself. <br>";
			 $body = $body."2. On every product detail page you can find the corresponding battery model. <br>";
             */
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store]www.civillaser.com<br>";
			 $body = $body."[E-Mail]master@civillaser.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 
			 			
		 }
		 return $body;
	 }



	 /**
	 * 发快递单给客户, Civillaser-jp
	 **/
	 public function getEmail_sendTrackingNumber_CJ($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,2);//去掉CJ	 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."お世話になります！<br>";
			 $body = $body."<br>";
			 if($express_company == 10){
				 //EMS				 
				 $body = $body."商品は国際郵便EMSにお願いして発送致しましたhttp://www.ems.com.cn/english.html　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";				 
			 }else if($express_company == 20){
				 //日本专线				 
				 $body = $body."商品は国際郵便FlyExpressにお願いして発送致しましたhttp://www.flyex.com.cn/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";				
			}else if($express_company == 30){
				 //TNT
				 $body = $body."商品は国際郵便 TNT にお願いして発送致しましたhttp://www.tnt.com/express/en_hk/site/home.html 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."商品は国際郵便 Fedex にお願いして発送致しましたhttp://www.fedex.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."商品は国際郵便 UPS にお願いして発送致しました http://www.ups.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."商品は国際郵便 DHL にお願いして発送致しました http://www.dhl.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."商品は国際郵便 Rpxonline にお願いして発送致しました http://www.rpxonline.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 80){
				 //美国USPS
				 $body = $body."商品は国際郵便 USPS にお願いして発送致しました https://www.usps.comこのページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 90){
				 //美国专线
				 $body = $body."商品は国際郵便 Aramex にお願いして発送致しました https://www.aramex.comこのページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 100){
				 //e邮宝
				 $body = $body."商品は国際郵便 EMS にお願いして発送致しました http://www.ems.com.cn/english.htmlこのページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 110){
				 //TOLL
				 $body = $body."商品は国際郵便 TOLL にお願いして発送致しました http://www.tollgroup.com/all-toolsこのページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			 
			 }else{
				 //其他线路
				 $body = $body."*******其他线路请手工编辑邮件内容，格式如下：*******<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."商品は国際郵便 xxxxxxxxxx にお願いして発送致しました http://www.xxxxxxxxxxxxxxxxxxx.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			 }
			 $body = $body."<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
			 if($express_company == 100){//e邮宝->e特快
				$body = $body."遅くても3~5日間になります。お待ちください！<br>";
				 $body = $body."<br><br>";
				 /*
				 $body = $body."[電池不含]<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."電池の海外への配送について<br>";
				 $body = $body."航空便規制により電池は同梱しておりません。ご了承してください！<br>";
				 $body = $body."<br>";
				 $body = $body."各製品の使用電池タイプは上記製品概要欄に明記していますのでご確認くださいませ！<br>";
				 $body = $body."（充電池を含むこと）<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 */
				 $body = $body."<br>";
			 }else{
				 $body = $body."遅くても3~6日間になります。お待ちください！<br>";
			 }
			 
			 $body = $body."以上です、よろしくお願いいたします！<br>";
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";

			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】高科激光株式会社   ハイテクレーザーカブシキガイシャ<br>";
			 $body = $body."【店舗名】www.jp.civillaser.com<br>";
			 $body = $body."【E-Mail】sales@civillaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }


	 /**
	 * 发快递单给客户, Laser-door  (网站已经停了,代码不再更新 2014-12-2)
	 **/
	 public function getEmail_sendTrackingNumber_LD($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,2);//去掉LD	 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."お世話になります！<br>";
			 $body = $body."<br>";
			 if($express_company == 10){
				 //EMS				 
				 $body = $body."商品は国際郵便EMSにお願いして発送致しましたhttp://www.ems.com.cn/english.html　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";				 
			 }else if($express_company == 20){
				 //日本专线				 
				 $body = $body."商品は国際郵便FlyExpressにお願いして発送致しましたhttp://www.flyex.com.cn/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";				
			}else if($express_company == 30){
				 //TNT
				 $body = $body."商品は国際郵便 TNT にお願いして発送致しましたhttp://www.tnt.com/express/en_hk/site/home.html　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."商品は国際郵便 Fedex にお願いして発送致しましたhttp://www.fedex.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."商品は国際郵便 UPS にお願いして発送致しました http://www.ups.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."商品は国際郵便 DHL にお願いして発送致しました http://www.dhl.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."商品は国際郵便 Rpxonline にお願いして発送致しました http://www.rpxonline.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			 }else{
				 //其他线路
				 $body = $body."*******其他线路请手工编辑邮件内容，格式如下：*******<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."商品は国際郵便 xxxxxxxxxx にお願いして発送致しました http://www.xxxxxxxxxxxxxxxxxxx.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			 }
			 $body = $body."<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
			 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
			 $body = $body."以上です、よろしくお願いいたします！<br>";
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【店舗名】www.laser-door.com<br>";
			 $body = $body."【E-Mail】master@laser-door.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }


	 /**
	 * 发快递单给客户, Kennbikyou
	 **/
	 public function getEmail_sendTrackingNumber_K($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,1);//去掉K 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."お世話になります！<br>";
			 $body = $body."<br>";
			 if($express_company == 10){
				 //EMS				 
				 $body = $body."商品は国際郵便EMSにお願いして発送致しましたhttp://www.ems.com.cn/english.html　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";				 
			 }else if($express_company == 20){
				 //日本专线				 
				 $body = $body."商品は国際郵便FlyExpressにお願いして発送致しましたhttp://www.flyex.com.cn/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";				
			}else if($express_company == 30){
				 //TNT
				 $body = $body."商品は国際郵便 TNT にお願いして発送致しましたhttp://www.tnt.com/express/en_hk/site/home.html 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."商品は国際郵便 Fedex にお願いして発送致しましたhttp://www.fedex.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."商品は国際郵便 UPS にお願いして発送致しました http://www.ups.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."商品は国際郵便 DHL にお願いして発送致しました http://www.dhl.com 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."商品は国際郵便 Rpxonline にお願いして発送致しました http://www.rpxonline.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			 }else if($express_company == 100){
				 //e邮宝 e特快
				 $body = $body."商品は国際郵便 EMS にお願いして発送致しました http://www.ems.com.cn/english.htmlこのページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			 }else{
				 //其他线路
				 $body = $body."*******其他线路请手工编辑邮件内容，格式如下：*******<br>";
				 $body = $body."--------------------------------------------------------<br>";
				 $body = $body."商品は国際郵便 xxxxxxxxxx にお願いして発送致しました http://www.xxxxxxxxxxxxxxxxxxx.com/ 　このページは、発送した商品が今どうなってるか追跡調査が確認する事が出来ます。　";
			 }
			 $body = $body."<br>お客様の商品の確認番号：".$tracking_number."（すぐ確認されない場合もあるかも、ご理解お願いいたします）<br>";
			 $body = $body."遅くても4~6日間になります。お待ちください！<br>";
			 $body = $body."以上です、よろしくお願いいたします！<br>";
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【店舗名】www.kennbikyou.com<br>";
			 $body = $body."【E-Mail】master@kennbikyou.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }


	 /**
	 * 发快递单给客户, DMicroscope
	 **/
	 public function getEmail_sendTrackingNumber_D($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,1);//去掉D	 
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";
			 $body = $body."<br>";
			 $body = $body."We have sent your package by  Air Transport. <br>";
			 $body = $body."Please find your tracking number listed below:<br>";
			 if($express_company == 10){
				 //EMS				 
				 $body = $body."Express company web site: http://www.ems.com.cn/english.html<br>";				 
			 }else if($express_company == 20){
				 //日本专线
				 $body = $body."Express company web site: http://www.flyex.com.cn<br>";	
			}else if($express_company == 30){
				 //TNT
				 $body = $body."Express company web site: http://www.tnt.com/express/en_hk/site/home.html<br>";	
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."Express company web site: http://www.fedex.com<br>";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."Express company web site: http://www.ups.com<br>";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."Express company web site: http://www.dhl.com<br>";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."Express company web site: http://www.rpxonline.com<br>";
			 }else if($express_company == 80){
				 //美国邮政
				 $body = $body."Express company web site: https://www.usps.com/<br>";
			}else if($express_company == 90){
				 //美国专线
				 $body = $body."Express company web site: https://www.aramex.com/<br>";
			}else if($express_company == 100){
				 //e邮宝
				 $body = $body."Express company web site: http://www.ems.com.cn/english.html<br>";
			}else if($express_company == 110){
				 //TOLL
				 $body = $body."Express company web site: http://www.tollgroup.com/all-tools<br>";
			 }else{
				 //其他线路
				 $body = $body."<br><br>*******其他线路请手工编辑邮件内容，格式如下：*******<br><br>";
				  $body = $body."Express company web site: http://www.xxxxxxxxxxx.com<br>";
			 }
			 $body = $body."Tracking Number: ".$tracking_number."<br>";
			 $body = $body."<br>";
			 if($express_company == 100){//e邮宝
				 $body = $body."It usually will take 7 ~ 10 days for delivery. <br>";				 
			 }else{
				 $body = $body."It usually will take 5 ~ 7 days for delivery. <br>";
			 }
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store]www.dmicroscope.com<br>";
			 $body = $body."[E-Mail]master@dmicroscope.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 
			 			
		 }
		 return $body;
	 }



	/**
	 * 发快递单给客户, Spycamhidden (带电池的 没几个线路可以走了)
	 **/
	 public function getEmail_sendTrackingNumber_S($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,1);//去掉S	 
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";
			 $body = $body."<br>";
			 $body = $body."We have sent your package by  Air Transport. <br>";
			 $body = $body."Please find your tracking number listed below:<br>";
			 if($express_company == 10){
				 //EMS				 
				 $body = $body."Express company web site: http://www.ems.com.cn/english.html<br>";				 
			 }else if($express_company == 20){
				 //日本专线
				 $body = $body."Express company web site: http://www.flyex.com.cn<br>";	
			}else if($express_company == 30){
				 //TNT
				 $body = $body."Express company web site: http://www.tnt.com/express/en_hk/site/home.html<br>";	
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."Express company web site: http://www.fedex.com<br>";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."Express company web site: http://www.ups.com<br>";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."Express company web site: http://www.dhl.com<br>";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."Express company web site: http://www.rpxonline.com<br>";
			 }else{
				 //其他线路
				 $body = $body."<br><br>*******其他线路请手工编辑邮件内容，格式如下：*******<br><br>";
				  $body = $body."Express company web site: http://www.xxxxxxxxxxx.com<br>";
			 }
			 $body = $body."Tracking Number: ".$tracking_number."<br>";
			 $body = $body."<br>";
			 $body = $body."It usually will take 5 ~ 7 days for delivery.<br>";
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store]www.spycamhidden.com<br>";
			 $body = $body."[E-Mail]master@spycamhidden.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 
			 			
		 }
		 return $body;
	 }

	 /**
	 * 返回邮件标题
	 **/
	 public function getEmailSubject($order_no,$order_site,$current_system){
		 $subject = "title";
		 $order_site = strtolower($order_site);
		 if($order_site == "hiteclaser" ){
			$subject = "Hiteclaser [新規注文] ご注文ありがとうございます。 No:".substr($order_no,1);
			if($current_system == "Windows XP"){
				$subject = urlencode(iconv('utf-8','gbk',$subject));	
			}else if($current_system == "Windows 7"){
				//$subject = urlencode(iconv('utf-8','gbk',$subject));
				$subject = urlencode($subject);	//for outlook 2013
			}else{
				$subject = urlencode($subject);	
			}	
			$subject = str_replace('+', '%20', $subject);
		 }else	if($order_site == "lucklaser.jp" ){
			$subject = "LuckLaser [新規注文] ご注文ありがとうございます。 No:".substr($order_no,2);
			if($current_system == "Windows XP"){
				$subject = urlencode(iconv('utf-8','gbk',$subject));	
			}else if($current_system == "Windows 7"){
				//$subject = urlencode(iconv('utf-8','gbk',$subject));
				$subject = urlencode($subject);	//for outlook 2013
			}else{
				$subject = urlencode($subject);	
			}	
			$subject = str_replace('+', '%20', $subject);
		 }else	if($order_site == "kr.lucklaser" ){
			$subject = "LuckLaser.KR[NEW ORDER] Order Confirmation No:".substr($order_no,2);
		 }else if($order_site == "lucklaser" ){
			$subject = "Lucklaser [NEW ORDER] Order Confirmation No: ".substr($order_no,1);			
		 }else if($order_site == "civillaser" ){
			$subject = "Civillaser [NEW ORDER] Order Confirmation No: ".substr($order_no,1);			
		 }else if($order_site == "jp.civillaser" ){
			$subject = "Civilaser [新規注文] ご注文ありがとうございます。 No:".substr($order_no,2);
			if($current_system == "Windows XP"){
				$subject = urlencode(iconv('utf-8','gbk',$subject));	
			}else if($current_system == "Windows 7"){
				//$subject = urlencode(iconv('utf-8','gbk',$subject));
				$subject = urlencode($subject);	//for outlook 2013
			}else{
				$subject = urlencode($subject);	
			}	
			$subject = str_replace('+', '%20', $subject);
		 }else if($order_site == "laser-door" ){
			$subject = "Laser-Door [新規注文] ご注文ありがとうございます。 No:".substr($order_no,2);
			if($current_system == "Windows XP"){
				$subject = urlencode(iconv('utf-8','gbk',$subject));	
			}else if($current_system == "Windows 7"){
				//$subject = urlencode(iconv('utf-8','gbk',$subject));
				$subject = urlencode($subject);	//for outlook 2013
			}else{
				$subject = urlencode($subject);	
			}	
			$subject = str_replace('+', '%20', $subject);
		 }else if($order_site == "kennbikyou" ){
			$subject = "Kennbikyou [新規注文] ご注文ありがとうございます。 No:".substr($order_no,1);
			if($current_system == "Windows XP"){
				$subject = urlencode(iconv('utf-8','gbk',$subject));	
			}else if($current_system == "Windows 7"){
				//$subject = urlencode(iconv('utf-8','gbk',$subject));
				$subject = urlencode($subject);	//for outlook 2013
			}else{
				$subject = urlencode($subject);	
			}	
			$subject = str_replace('+', '%20', $subject);
		 }else if($order_site == "dmicroscope" ){
			$subject = "DMicroscope [NEW ORDER] Order Confirmation No: ".substr($order_no,1);
		 }else if($order_site == "spycamhidden" ){
			$subject = "Spycamhidden [NEW ORDER] Order Confirmation No: ".substr($order_no,1);
		 }else if($order_site == "canetalaser" ){
			$subject = "CanetaLaser [NEW ORDER] Order Confirmation No: ".substr($order_no,2);
		 }
		 return $subject;
	 }


	 /**
	 * 数字转货币格式
	 * 只处理整数
	 **/
	 public function toMoney($sum){
		 $moneySum = "";
		 if($sum == 0){
			$moneySum = "0";
		 }else{
			 $strSum = $sum+"";
			 $len = strlen($strSum);			 
			 $byThree = 0;
			 for($i=$len-1;$i>-1;$i--){
				 $byThree++;				 
				 if($byThree%3==0){
					 $moneySum = ",".substr($strSum,$i,1).$moneySum;
				 }else{					
					 $moneySum = substr($strSum,$i,1).$moneySum;
				 }
				
			 }
			 //去掉第一个","逗号
			 $firstLetter = substr($moneySum,0,1);
			 if($firstLetter == ","){
				 $moneySum = substr($moneySum,1);
			 }
		 }
		 return $moneySum;
	 }

	
	/**
	* 得到数字订单编号
	**/
	 public function getOrderNumber($order_no,$order_site){
		 $order_site = strtolower($order_site);
		 if($order_site == "jp.civillaser" || $order_site == "lucklaser.jp" || $order_site == "kr.lucklaser" || $order_site == "laser-door"  || $order_site == "canetalaser"){
			 return substr($order_no,2);
		 }else{
			 return substr($order_no,1);
		 }
	 }


    /**
	* 获取当前操作系统
	**/
	 function getSystem(){   
    $sys = $_SERVER['HTTP_USER_AGENT'];   
    if(stripos($sys, "NT 6.1"))
        $os = "Windows 7";   
    elseif(stripos($sys, "NT 6.0"))   
    $os = "Windows Vista";   
    elseif(stripos($sys, "NT 5.1"))   
    $os = "Windows XP";   
    elseif(stripos($sys, "NT 5.2"))   
    $os = "Windows Server 2003";   
    elseif(stripos($sys, "NT 5"))   
    $os = "Windows 2000";   
    elseif(stripos($sys, "NT 4.9"))   
    $os = "Windows ME";   
    elseif(stripos($sys, "NT 4"))   
    $os = "Windows NT 4.0";   
    elseif(stripos($sys, "98"))   
    $os = "Windows 98";   
    elseif(stripos($sys, "95"))   
    $os = "Windows 95";   
    elseif(stripos($sys, "Mac"))   
    $os = "Mac";   
    elseif(stripos($sys, "Linux"))   
    $os = "Linux";   
    elseif(stripos($sys, "Unix"))   
    $os = "Unix";   
    elseif(stripos($sys, "FreeBSD"))   
    $os = "FreeBSD";   
    elseif(stripos($sys, "SunOS"))   
    $os = "SunOS";   
    elseif(stripos($sys, "BeOS"))   
    $os = "BeOS";   
    elseif(stripos($sys, "OS/2"))   
    $os = "OS/2";   
    elseif(stripos($sys, "PC"))   
    $os = "Macintosh";   
    elseif(stripos($sys, "AIX"))   
    $os = "AIX";   
    else  
        $os = "未知操作系统";    
    return $os;   
} 




	 /**
	 * CanetaLaser 邮件:付款方式
	 **/
	 public function getEmail_paymentEmail_CA($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,2);//去掉CA
			 //PayPal
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."Thanks for shopping with us today!<br>";
			 $body = $body."<br>";
			 $body = $body."We have sent a PayPal invoice to you. <br>";
			 $body = $body."Please open your Email and then use your PayPal account or your credit-card to do payment online. <br>";
			 $body = $body."<br>";
			 $body = $body."After we get your payment, we will deliver the goods to you in 24 hours. <br>";
			 $body = $body."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."Note: <br>";
			 $body = $body."Our PayPal account is \"master@civillaser.com\"<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."You can find more detail message about Payment(Video show buying process):<br>";
			 $body = $body."http://www.canetalaser.com/meios-de-pagamento-e-envio-ezp-5.html <br>";
			 $body = $body."<br>";	
			 $body = $body."<br>";
			 $body = $body."**************************************<br>";
			 $body = $body."Payment steps:<br>";
			 $body = $body."1. After you place an order, you will receive an email; <br>";
			 $body = $body."&nbsp;&nbsp;&nbsp;&nbsp;It's a bill for payment from PayPal.<br>";
			 $body = $body."2. Check your order number,products list,amount price.<br>";
			 $body = $body."3. Pay it on PayPal site.<br>";
			 $body = $body."**************************************<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Best Regards,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store] www.canetalaser.com<br>";
			 $body = $body."[E-Mail]master@canetalaser.com <br>";
			 $body = $body."------------------------End------------------------<br>";
			 			
		 }
		 return $body;
	 }


	 
	 /**
	 * CanetaLaser 邮件:确认付款
	 **/
	 public function getEmail_confirmPaymentEmail_CA($result){		 
		 $body = "";		 
		 if(!$result->EOF){			 
			 $order_no = $result->fields['order_no'];
			 $order_no = substr($order_no,2);//去掉CA
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."We have received your payment. Thank you very much for your support!<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."We will ship your products as soon as possible, After shipping the package, we will email the Tracking Number to you.<br>";		 
			 $body = $body."<br>";
			 $body = $body."<br>";
			 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Best Regards,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store] www.canetalaser.com<br>";
			 $body = $body."[E-Mail]master@canetalaser.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";
			 			
		 }
		 return $body;
	 }


	 
	 /**
	 * 发快递单给客户, Canetalaser
	 **/
	 public function getEmail_sendTrackingNumber_CA($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			$express_company = $result->fields['express_company'];
			$tracking_number = $result->fields['tracking_number'];


			 $order_no = substr($order_no,2);//去掉CA
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";
			 $body = $body."<br>";
			 $body = $body."We have sent your package by  Air Transport. <br>";
			 $body = $body."Please find your tracking number listed below:<br>";
			 if($express_company == 10){
				 //EMS				 
				 $body = $body."Express company web site: http://www.ems.com.cn/english.html<br>";				 
			 }else if($express_company == 20){
				 //日本专线
				 $body = $body."Express company web site: http://www.flyex.com.cn<br>";	
			}else if($express_company == 30){
				 //TNT
				 $body = $body."Express company web site: http://www.tnt.com/express/en_hk/site/home.html<br>";	
			}else if($express_company == 40){
				 //Fedex
				 $body = $body."Express company web site: http://www.fedex.com<br>";
			}else if($express_company == 50){
				 //UPS
				 $body = $body."Express company web site: http://www.ups.com<br>";
            }else if($express_company == 60){
				 //DHL
				 $body = $body."Express company web site: http://www.dhl.com<br>";
             }else if($express_company == 70){
				 //英法德专线
				 $body = $body."Express company web site: http://www.rpxonline.com<br>";
			}else if($express_company == 80){
				 //美国专线
				 $body = $body."Express company web site: https://www.usps.com/<br>";
			}else if($express_company == 90){
				 //专线
				 $body = $body."Express company web site: https://www.aramex.com/<br>";
			}else if($express_company == 100){
				 //e邮宝
				 $body = $body."Express company web site: http://www.ems.com.cn/english.html<br>";
			}else if($express_company == 110){
				 //TOLL
				 $body = $body."Express company web site: http://www.tollgroup.com/all-tools<br>";
			 }else{
				 //其他线路
				 $body = $body."<br><br>*******其他线路请手工编辑邮件内容，格式如下：*******<br><br>";
				  $body = $body."Express company web site: http://www.xxxxxxxxxxx.com<br>";
			 }
			 $body = $body."Tracking Number: ".$tracking_number."<br>";
			 $body = $body."<br>";
			 $body = $body."It usually will take 5 ~ 7 days for delivery. <br>";
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
				 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";

			 $body = $body."<br>";
			 $body = $body."Best Regards,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store] www.canetalaser.com<br>";
			 $body = $body."[E-Mail]master@canetalaser.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 
			 			
		 }
		 return $body;
	 }




	 
	 /**
	 * empty email, Hiteclaser
	 **/
	 public function getEmail_emptyEmail_H($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			 $order_no = substr($order_no,1);//去掉H	 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."お世話になります！<br>";
			 $body = $body."<br>";		
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】高科激光株式会社   ハイテクレーザーカブシキガイシャ<br>";
			 $body = $body."【店舗名】www.hiteclaser.com<br>";
			 $body = $body."【E-Mail】 master@hiteclaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }	 
	 

	 /**
	 * empty email, Lucklaser.jp
	 **/
	 public function getEmail_emptyEmail_LJ($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			 $order_no = substr($order_no,2);//去掉LJ	 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."お世話になります！<br>";
			 $body = $body."<br>";		
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】沃熔科技株式会社  HangZhou WoRong Technology Co. Ltd  <br>";
			 $body = $body."【店舗名】www.LuckLaser.jp<br>";
			 $body = $body."【E-Mail】 master@lucklaser.jp<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }	 
	
	 /**
	 * empty email, Lucklaser-kr
	 **/
	 public function getEmail_emptyEmail_LK($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			 $order_no = substr($order_no,2);//去掉LK	 
			 $body = $result->fields['customer_name']." <br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."시간을 내 주셔서 감사합니다!<br>";
			 $body = $body."<br>";		
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[당신의 상품 구매 리스트]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."점장: Vincent Chen<br>";
			 $body = $body."회사 명칭: HangZhou WoRong Technology Co. Ltd  <br>";
			 $body = $body."인터넷 쇼핑점 주소: www.kr.lucklaser.com<br>";
			 $body = $body."이메일 주소: kr@lucklaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }	 

	 /**
	 * empty email, Lucklaser
	 **/
	 public function getEmail_emptyEmail_L($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];			
			 $order_no = substr($order_no,1);//去掉L	 
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store] www.lucklaser.com<br>";
			 $body = $body."[E-Mail]master@lucklaser.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 
			 			
		 }
		 return $body;
	 }


	 
	 
	 /**
	 * empty email, Civillaser
	 **/
	 public function getEmail_emptyEmail_C($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];	
			 $order_no = substr($order_no,1);//去掉C	 
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";			 
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store]www.civillaser.com<br>";
			 $body = $body."[E-Mail]master@civillaser.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 
			 			
		 }
		 return $body;
	 }

	 
	 /**
	 * empty email, Civillaser-jp
	 **/
	 public function getEmail_emptyEmail_CJ($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];	
			 $order_no = substr($order_no,2);//去掉CJ	 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."お世話になります！<br>";
			 $body = $body."<br>";			 
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【商号】高科激光株式会社   ハイテクレーザーカブシキガイシャ<br>";
			 $body = $body."【店舗名】www.jp.civillaser.com<br>";
			 $body = $body."【E-Mail】sales@civillaser.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }


	 /**
	 * empty email, Laser-door
	 **/
	 public function getEmail_emptyEmail_LD($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];	
			 $order_no = substr($order_no,2);//去掉LD	 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."お世話になります！<br>";
			 $body = $body."<br>";			
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【店舗名】www.laser-door.com<br>";
			 $body = $body."【E-Mail】master@laser-door.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }



	 /**
	 * empty email, Kennbikyou
	 **/
	 public function getEmail_emptyEmail_K($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];	
			 $order_no = substr($order_no,1);//去掉K 
			 $body = $result->fields['customer_name']." 様<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."お世話になります！<br>";
			 $body = $body."<br>";			
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[商品]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."謹白<br>";
			 $body = $body."【店長】 Vincent Chen<br>";
			 $body = $body."【店舗名】www.kennbikyou.com<br>";
			 $body = $body."【E-Mail】master@kennbikyou.com<br>";
			 $body = $body."------------------------End------------------------<br>";			 			
		 }
		 return $body;
	 }


	 /**
	 * empty email, DMicroscope
	 **/
	 public function getEmail_emptyEmail_D($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];	
			 $order_no = substr($order_no,1);//去掉D	 
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";
			 $body = $body."<br>";			 
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";			 
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store]www.dmicroscope.com<br>";
			 $body = $body."[E-Mail]master@dmicroscope.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 			 			
		 }
		 return $body;
	 }


	
	/**
	 * empty email, Spycamhidden
	 **/
	 public function getEmail_emptyEmail_S($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];	
			 $order_no = substr($order_no,1);//去掉S	 
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";
			 $body = $body."<br>";			 
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";			 
			 $body = $body."<br>";
			 $body = $body."Best wishes,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store]www.spycamhidden.com<br>";
			 $body = $body."[E-Mail]master@spycamhidden.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 			 			
		 }
		 return $body;
	 }

	 
	 /**
	 * empty email, Canetalaser
	 **/
	 public function getEmail_emptyEmail_CA($result){		 
		 $body = "";		 
		 if(!$result->EOF){				
			$order_no = $result->fields['order_no'];		
			 $order_no = substr($order_no,2);//去掉CA
			 $body = "Dear ".$result->fields['customer_name'].",<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Thank you for your time!<br>";
			 $body = $body."<br>";			 
             $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";				 
			 $body = $body."[Products List]<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body.$result->fields['products_info']."<br>";
			 $body = $body."------------------------------------------------------<br>";
			 $body = $body."<br>";
			 $body = $body."<br>";
			 $body = $body."Best Regards,<br>";
			 $body = $body."[Sales Manager]Vincent Chen<br>";
			 $body = $body."[Web Store] www.canetalaser.com<br>";
			 $body = $body."[E-Mail]master@canetalaser.com <br>";
			 $body = $body."--------------------------End--------------------------<br>";	 			 			
		 }
		 return $body;
	 }


	 /* 
		Utf-8、gb2312都支持的汉字截取函数 
		cut_str(字符串, 截取长度, 开始长度, 编码); 
		编码默认为 utf-8 
		开始长度默认为 0 
	*/ 
	function cut_str($string, $sublen, $start = 0, $code = 'UTF-8') 
	{ 
		if($code == 'UTF-8') 
		{ 
			$pa = "/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|\xe0[\xa0-\xbf][\x80-\xbf]|[\xe1-\xef][\x80-\xbf][\x80-\xbf]|\xf0[\x90-\xbf][\x80-\xbf][\x80-\xbf]|[\xf1-\xf7][\x80-\xbf][\x80-\xbf][\x80-\xbf]/"; 
			preg_match_all($pa, $string, $t_string); 
			if(count($t_string[0]) - $start > $sublen) return join('', array_slice($t_string[0], $start, $sublen))."..."; 
			return join('', array_slice($t_string[0], $start, $sublen)); 
		} 
		else 
		{ 
			$start = $start*2; 
			$sublen = $sublen*2; 
			$strlen = strlen($string); 
			$tmpstr = ''; 
			for($i=0; $i< $strlen; $i++) 
			{ 
				if($i>=$start && $i< ($start+$sublen)) 
				{ 
					if(ord(substr($string, $i, 1))>129) 
					{ 
						$tmpstr.= substr($string, $i, 2); 
					} 
					else 
					{ 
						$tmpstr.= substr($string, $i, 1); 
					} 
				} 
				if(ord(substr($string, $i, 1))>129) $i++; 
			} 
			if(strlen($tmpstr)< $strlen ) $tmpstr.= "..."; 
			return $tmpstr; 
		} 
	} 

	
	/**
	展示快递看的省报价格
	**/
	function  getDeclaredPrice($realPrice,$moneyType){
		$showPrice = "30";
		if($moneyType == "yen"){
			//处理日元
			if($realPrice < 25000){
				$showPrice = "<30";
			}else if($realPrice < 50000){
				$showPrice = "<50";
			}else{
				$showPrice = ">50";
			}
		}else if($moneyType == "dollar"){
			//处理美元
			if($realPrice < 250){
				$showPrice = "<30";
			}else if($realPrice < 500){
				$showPrice = "<50";
			}else{
				$showPrice = ">50";
			}
		}
		return $showPrice."$";
	}


		 /**
	 *根据快递状态编号 得到快递状态名称 
	 **/
	 public function getDeliverName($deliverFlagNo){
		 $deliverName = "未知快递状态";
		 if($deliverFlagNo == 0){
			$deliverName = "无需快递";
		 }else if($deliverFlagNo == 1){
			 $deliverName = "▲飞翔[无单号]";
		 }else if($deliverFlagNo == 10){
			 $deliverName = "飞翔[有单号]";
		 }else if($deliverFlagNo == 2){
			 $deliverName = "飞翔[发客户]";
		 }else if($deliverFlagNo == 4){
			 $deliverName = "▲eub[无单号]";
		 }else if($deliverFlagNo == 5){
			 $deliverName = "eub[有单号]";
		 }else if($deliverFlagNo == 6){
			 $deliverName = "eub[发客户]";
		 }else if($deliverFlagNo == 7){
			 $deliverName = "▲易运[无单号]";
		 }else if($deliverFlagNo == 8){
			 $deliverName = "易运[有单号]";
		 }else if($deliverFlagNo == 9){
			 $deliverName = "易运[发客户]";
		 }else if($deliverFlagNo == 11){
			 $deliverName = "▲阿运[无单号]";
		 }else if($deliverFlagNo == 12){
			 $deliverName = "阿运[有单号]";
		 }else if($deliverFlagNo == 13){
			 $deliverName = "阿运[发客户]";
		 }else if($deliverFlagNo == 3){
			 $deliverName = "取消快递";
		 }
		 return $deliverName;
	 }



	 /***
	 *clothing
	 根据资金流向编号  得到资料流向名称
	 ****/
	 public function getIOFlagName($ioFlagId){
		 $ioFlagName = "未知流向";
		 if($ioFlagId == 1){
			 $ioFlagName = "收入-货款收入";
		 }else if($ioFlagId == 2){
			 $ioFlagName = "收入-Hanna出资";
		 }else if($ioFlagId == 3){
			 $ioFlagName = "收入-Jessica出资";
		 }else if($ioFlagId == 4){
			 $ioFlagName = "支出-生产支出";
		 }else if($ioFlagId == 5){
			 $ioFlagName = "支出-进货支出";
		 }else if($ioFlagId == 6){
			 $ioFlagName = "支出-推广支出";
		 }else if($ioFlagId == 7){
			 $ioFlagName = "支出-公司支出";
		 }else if($ioFlagId == 8){
			 $ioFlagName = "支出-人员支出";
		 }else if($ioFlagId == 9){
			 $ioFlagName = "支出-Hanna提现";
		 }else if($ioFlagId == 10){
			 $ioFlagName = "支出-Jessica提现";
		 }else if($ioFlagId == 11){
			 $ioFlagName = "收入-支付宝转入";
		 }
		 return $ioFlagName;
	 }


	/**
	插入数据库前把
	* 字符串中的单引号替换掉 ' --> \'
	**/
	
	 public function getSQLString($str){
		 return  str_replace("'","\'",$str);		 
	 }
	 


	 /**
	 * 客户 VIP 等级转星号
	 **/
	 public function getVIPLevel($i){
		 if($i == 1){
			 return "★(>2单)";
		 }else if($i == 2){
			 return "★★(>5单)";
		 }else if($i == 3){
			 return "★★★(>10单)";
		 }else if($i == 4){
			 return "★★★★(>20单)";
		 }else if($i == 5){
			 return "★★★★★(>30单)";
		 }else{
			 return "★(>2单)";
		 }
	 }

	 






}//end class

?>